/*
 * N900Server.h
 *
 *  Created on: Aug 12, 2016
 *      Author: ubuntu
 */

#ifndef N900_N900SERVER_H_
#define N900_N900SERVER_H_

#include "../TcpServer.h"
#include "N900DevStatus.h"


class N900Server : public TcpServer {
public:
	N900Server(int port, int type);
	virtual ~N900Server();

	virtual ClientConnection *on_connect(struct connectop *, struct sockaddr *);

	virtual void add(void *arg);
	virtual void del(void *arg);
	virtual void *find(void *arg);

protected:

	virtual void addStatus(N900DevStatus *);
	virtual void delStatus(N900DevStatus *);

private:
	list<N900DevStatus *> m_lstDevstatus;
};



#endif /* N900_N900SERVER_H_ */
